<?php

	$table = Array();
	$table['header'] = '<table class="dungeonLayerTable" cellpadding="0" cellspacing="0">[[rows]]</table>';
	$table['tr']	 = '<tr>[[cols]]</tr>';
	$table['td']	 = '<td id="[[id]]" class="dungeonLayerCell" onClick="putImage(this.id);">[[content]]</td>';
	
	$json = json_encode($table);
	
	echo $json;
?>